package com.rfid.project.model;

import javax.persistence.*;

import biz.core.KeyValue;
import biz.util.KeyValueUtil;
import biz.util.StringUtil;
import biz.core.IdEntity;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

@Entity
public class ProjectProduct extends IdEntity {

	// 项目
	@ManyToOne
	@JoinColumn(name = "ProjectID")
	private Project project;

	// 产品
	@ManyToOne
	@JoinColumn(name = "ProductID")
	private Product product;

	// 批次号
	private String batchNo;

	// 计划交付数量
	private Float planDeliveryNumber;

	// 已经交付数量
	private Float actualDeliveryNumber;

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public Float getPlanDeliveryNumber() {
		return planDeliveryNumber;
	}

	public void setPlanDeliveryNumber(Float planDeliveryNumber) {
		this.planDeliveryNumber = planDeliveryNumber;
	}

	public Float getActualDeliveryNumber() {
		return actualDeliveryNumber;
	}

	public void setActualDeliveryNumber(Float actualDeliveryNumber) {
		this.actualDeliveryNumber = actualDeliveryNumber;
	}

}
